<?php

function post_param($nom, $defaut)//--------------------------------------------
{
    if ( isset( $_POST[$nom] ) )
		return ajoutslashes($_POST[$nom]);
    return $defaut;
}//-----------------------------------------------------------------------------


function post_notnull($nom, &$var, $msg_erreur)//-----------------------------------------
{
	$var = post_param($nom, '');
	return ( $var === '' )? $msg_erreur: '';
}//-----------------------------------------------------------------------------

?>
